<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2018/1/3
  Time: 17:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=utf-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<style type="text/css">
    .pageFormContent .textInput { width: 280px; }
   /* .pageFormContent label { width: 100px; }*/
    .gray { color: gray; }
</style>
<div class="pageContent">
    <form id="pagerForm" method="post" action="<c:url value='/game/jf'/>" class="pageForm required-validate"
          onsubmit="return iframeCallback(this,callbackForSubmit);"
          enctype="multipart/form-data">
        <div class="pageFormContent">
            <input type="hidden" name="dbid" value="${game.dbid}"/>
            <input  type="hidden" id="old" name="old" value="${game.score}"/>
            <p>
                <label for="txt_show_name" class="required">分数</label>
                <input id="txt_show_name" type="number" name="score" class="required" value=""  />
            </p>
        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">保存</button>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" class="close">取消</button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </form>
</div>


<script type="text/javascript">
    function callbackForSubmit(resp, st, xhr) {
        if (resp && resp.succ) {
            alertMsg.info( "操作成功!");
            $.pdialog.closeCurrent();
            navTab.reloadFlag('page_os_game_index')
        } else {
            alertMsg.info( "操作失败!");
        }
    }
</script>

